var status = -1;

function start() {
    action(1, 0, 0)
}

function action(d, b, a) {
    status++;
    var c = cm.getJob();
    if (c == 2005 || c == 2500 || c == 2510 || c == 2511 || c == 2512) {
        action1(d, b, a)
    } else {
        cm.dispose()
    }
}

function action1(d, c, b) {
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(2159461, "oid=227919", -82, -69, 4, -132, -43, 1, false, 0, false);
            cm.sendNormalTalk("看来沙漠中富人云集的传闻是真的了。幻影这家伙到底偷了多少？嗯，这么看来，那只箱子似乎就是传说中装有珍贵宝物的那个了。我得看看。", 17, 0, false, true)
        } else {
            if (status === a++) {
                cm.forceStartQuest(38052, "clear");
                cm.dispose()
            }
        }
    }
}

function action2(d, c, b) {
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {}
    }
};